package cn.stylefeng.guns.sys.modular.system.entity;

import java.math.BigDecimal;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author wjk
 * @since 2021-12-08
 */
@TableName("bty_payment_order_details")
public class BtyPaymentOrderDetails implements Serializable {

    private static final long serialVersionUID=1L;

    /**
     * 主键id
     */
      @TableId(value = "id", type = IdType.ID_WORKER)
    private Long id;

    /**
     * 日现金表id
     */
    @TableField("yybb_id")
    private Integer yybbId;

    /**
     * 营业日
     */
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @JSONField(format="yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone="GMT+8")
    @TableField("yyr")
    private Date yyr;

    /**
     * 店名
     */
    @TableField("dm")
    private String dm;

    /**
     * 妖码
     */
    @TableField("yaoma")
    private String yaoma;

    /**
     * 现金实缴
     */
    @TableField("paid_cash")
    private BigDecimal paidCash;

    /**
     * 支付编号
     */
    @TableField("pay_code")
    private Long payCode;

    /**
     * 支付订单表id
     */
    @TableField("bty_payment_order_id")
    private Long btyPaymentOrderId;

    /**
     * 支付状态（0.支付中，1，支付成功，2支付为失败）
     */
    @TableField("pay_state")
    private Integer payState;


    /**
     * 店内现金
     */
    @TableField("xj")
    private BigDecimal xj;

    /**
     * 现金充值
     */
    @TableField("xjbz")
    private BigDecimal xjbz;

    /**
     * 创建时间
     */
      @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;

    /**
     * 创建人
     */
      @TableField(value = "create_user", fill = FieldFill.INSERT)
    private Long createUser;

    /**
     * 修改时间
     */
      @TableField(value = "update_time", fill = FieldFill.UPDATE)
    private Date updateTime;

    /**
     * 修改人
     */
      @TableField(value = "update_user", fill = FieldFill.UPDATE)
    private Long updateUser;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Integer getYybbId() {
        return yybbId;
    }

    public void setYybbId(Integer yybbId) {
        this.yybbId = yybbId;
    }

    public Date getYyr() {
        return yyr;
    }

    public void setYyr(Date yyr) {
        this.yyr = yyr;
    }

    public String getDm() {
        return dm;
    }

    public void setDm(String dm) {
        this.dm = dm;
    }

    public String getYaoma() {
        return yaoma;
    }

    public void setYaoma(String yaoma) {
        this.yaoma = yaoma;
    }

    public BigDecimal getPaidCash() {
        return paidCash;
    }

    public void setPaidCash(BigDecimal paidCash) {
        this.paidCash = paidCash;
    }

    public Long getPayCode() {
        return payCode;
    }

    public void setPayCode(Long payCode) {
        this.payCode = payCode;
    }

    public Long getBtyPaymentOrderId() {
        return btyPaymentOrderId;
    }

    public void setBtyPaymentOrderId(Long btyPaymentOrderId) {
        this.btyPaymentOrderId = btyPaymentOrderId;
    }

    public Integer getPayState() {
        return payState;
    }

    public void setPayState(Integer payState) {
        this.payState = payState;
    }


    public BigDecimal getXj() {
        return xj;
    }

    public void setXj(BigDecimal xj) {
        this.xj = xj;
    }

    public BigDecimal getXjbz() {
        return xjbz;
    }

    public void setXjbz(BigDecimal xjbz) {
        this.xjbz = xjbz;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Long getCreateUser() {
        return createUser;
    }

    public void setCreateUser(Long createUser) {
        this.createUser = createUser;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public Long getUpdateUser() {
        return updateUser;
    }

    public void setUpdateUser(Long updateUser) {
        this.updateUser = updateUser;
    }

    @Override
    public String toString() {
        return "BtyPaymentOrderDetails{" +
        "id=" + id +
        ", yybbId=" + yybbId +
        ", yyr=" + yyr +
        ", dm=" + dm +
        ", yaoma=" + yaoma +
        ", paidCash=" + paidCash +
        ", payCode=" + payCode +
        ", btyPaymentOrderId=" + btyPaymentOrderId +
        ", payState=" + payState +
        ", xj=" + xj +
        ", xjbz=" + xjbz +
        ", createTime=" + createTime +
        ", createUser=" + createUser +
        ", updateTime=" + updateTime +
        ", updateUser=" + updateUser +
        "}";
    }
}
